<?php

echo $this->Form->create('User');
echo $this->Form->input("User.id", array('label' => 'Nombres', ));
echo $this->Form->input("User.nombre", array('label' => 'Nombres', ));
echo $this->Form->input("User.primer_apellido", array('label' => 'Primer Apellido', ));
echo $this->Form->input("User.segundo_apellido", array('label' => 'Segundo Apellido', ));
echo $this->Form->input("User.email", array('label' => 'Correo electrónico', ));
echo $this->Form->input("User.telefono", array('label' => 'Teléfono', ));
echo $this->Form->input("User.group_id", array('label' => 'Grupo', 'empty'=>'selecione'));
echo $this->Form->input("User.branch_id", array('label' => 'Entidad','empty'=>'selecione' ));
echo $this->Ajax->submit('Guardar', array('url' => array('controller' => 'Users', 'action' => 'edition',$this->data['User']['id']), 'update' => 'content', 'indicator' => 'loading'));

echo $this->Form->end();
?>
